package mrusanov.view

object PlayerViewState {

}

abstract sealed class PlayerViewState(val name:String) {
  def isStanding:Boolean = this == Stand || this == Idle
  def isAttack:Boolean = this == AttackDown || this == AttackUp
}

object Stand extends PlayerViewState("stand")
object DefaultAttack extends PlayerViewState("attack")
object AttackDown extends PlayerViewState("attackDown")
object AttackUp extends PlayerViewState("attackUp")
object Idle extends PlayerViewState("idle")
object Death extends PlayerViewState("death")
object Defence extends PlayerViewState("defence")
object NotRender extends PlayerViewState("")